package User;

import javax.persistence.*;

@Entity
public class User {
    private String name;
    @Id
    private String email;
    private String passwd;
    private String img;
    private String dgutid;

    public User(){}
    public User(String name, String dgutid, String passwd, String img)
    {
        this.dgutid = dgutid;
        this.passwd = passwd;
        this.name = name;
        this.email = null;
        this.img = img;
    }
    public User(String name, String email, String passwd, String dgutid, String img)
    {
        this.dgutid = dgutid;
        this.email = email;
        this.img = img;
        this.name = name;
        this.passwd = passwd;
    }

    public String getEmail() {
        return email;
    }

    public String getName() {
        return name;
    }

    public String getPasswd() {
        return passwd;
    }

    public String getImg() {
        return img;
    }

    public String getDgutid() {
        return dgutid;
    }

    public void setDgutid(String dgutid) {
        this.dgutid = dgutid;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }
}
